from Data.Chinese import model_number
import tkinter as tk

if __name__ == '__main__':
    root = tk.Tk()
    root.withdraw()
    root.attributes('-topmost', True)

    while True:
        print("1 中文      2 英文      0 退出")
        choice1 = input("请输入：")
        if choice1 == "0":
            print("程序已退出！！！")
            break
        if choice1 not in ["1", "2"]:
            print("输入无效")
            continue
        print("1 模块编号")
        choice2 = input("请输入：")
        if choice2 not in ["1"]:
            print("输入无效")
            continue
        print("1 SVN      2 非SVN")
        choice3 = input("请输入：")
        if choice3 not in ["1", "2"]:
            print("输入无效")
            continue
        if choice1 == "1" and choice2 == "1" and choice3 == "1":
            model_number.rename_svn()
        elif choice1 == "1" and choice2 == "1" and choice3 == "2":
            model_number.rename()
